package cn.edu.scau.cmi.zhaotingjie.chapter08;

public class RedCowForm {
	String formName;
	RedCow cow;
	RedCowForm(){
	}
	RedCowForm(String s){
		cow = new RedCow(150,112,5000);
		formName = s;
	}
	public void showCowMess() {
		cow.speak();
	}
	class RedCow{
		String cowName = "red cow";
		int height,weight,price;
		RedCow(int h,int w,int p){
			height = h;
			weight = w;
			price = p;
		}
		void speak() {
			System.out.println("I'm"+cowName+",height:"+height+"cm weight:"+weight+"kg,live in"+formName);
		}
	}
}
